package com.jiaai.cloud.user.service.impl;

import com.jiaai.cloud.user.entity.TUserWallet;
import com.jiaai.cloud.user.mapper.TUserWalletMapper;
import com.jiaai.cloud.user.service.ITUserWalletService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-01
 */
@Service
public class TUserWalletServiceImpl extends ServiceImpl<TUserWalletMapper, TUserWallet> implements ITUserWalletService {

    @Override
    public TUserWallet findByAnchorId(String anchorId) {
        return baseMapper.findByAnchorId(anchorId);
    }

    @Override
    public TUserWallet updateUserId(String userId,BigDecimal money) {
        return baseMapper.updateUserId(userId,money);
    }
}
